package com.example.springboot.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


public interface UserMapper extends BaseMapper<User> {

    int update(User user);

    int insert(User user);

    List<User> listUser(Integer pageNum, Integer pageSize, String username);

    int deleteUser(int id);

    int countUser();

}